<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property bool $multiple 选项:0=单选,1=多选
 * @property int $id
 * @property int $pid
 * @property string $createtime
 * @property string $name
 * @property-read \app\model\RoomTags[] $tags
 * @mixin \think\Model
 */
class RoomTags extends Model
{
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';


    function tags()
    {
       return $this->hasMany(RoomTags::class,'pid');
    }
}
